<template>
	<view class="ys">
		<view class="title">
			留言标题
		</view>
		<view class="inputbox">
			<input :value="info.title" disabled></input>
		</view>
		<view class="title">
			留言内容
		</view>
		<view class="inputbox">
			<textarea :value="info.content" disabled></textarea>
		</view>

		<view class="backbox" v-if="info.status != 0">
			<view class="title">
				回复内容
			</view>
			<view class="inputbox">
				<textarea :value="info.back_content || '暂无'" disabled></textarea>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		feedbackInfo
	} from "@/api/api.js"
	export default {
		data() {
			return {
				info: [],
				img: []
			}
		},
		onLoad(e) {
			this.FeedBackDetail(e.id)
		},
		onNavigationBarButtonTap() {
			uni.navigateTo({
				url: './list/list'
			})
		},
		methods: {
			FeedBackDetail(id) {
				feedbackInfo({
					id
				}).then(res => {
					this.info = res.data
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		padding-bottom: 10px;
	}

	.tips {
		display: flex;
		align-items: center;
		padding: 10px;
		font-size: 12px;
		border-bottom: 1px solid #ccc;
	}

	.backbox {
		border-top: 2px solid #eee;
	}

	.fileli {
		font-size: 14px;
		padding-top: 15px;
		width: 90%;
		margin: 0 auto;

		text {
			margin-left: 10px;
			background: #5895cd;
			padding: 2px 5px;
			border-radius: 5px;
			color: #fff;
		}
	}

	.title {
		padding: 5% 0;
		width: 90%;
		font-weight: bold;
		margin: 0 auto;
	}

	.inputbox {
		input {
			padding: 10px 2%;
			width: 88%;
			margin: 0 auto;
			border-radius: 5px;
			font-size: 14px;
			background: #fff;
		}

		.imgbox {
			width: 90%;
			margin: 0 auto;
			display: flex;
			flex-wrap: wrap;

			.img-item {
				width: 24%;
				margin-right: 1%;
				position: relative;

				image {
					width: 100%;
					height: 21.6vw;
					border-radius: 5px;
				}
			}

		}



		.tipsbox {
			width: 90%;
			margin: 0 auto;
			display: flex;
			flex-wrap: wrap;

			.tips_item {
				font-size: 12px;
				color: #999;
				border: 1px solid #eee;
				border-radius: 5px;
				padding: 3px 20px;
				margin: 5px 15px;
				margin-left: 0;
			}

			.active {
				color: #F04D2F;
				border-color: #F04D2F;
			}
		}

		textarea {
			padding: 2%;
			width: 88%;
			margin: 0 auto;
			border-radius: 5px;
			font-size: 14px;
			background: #fff;
		}
	}

	button {
		width: 90%;
		margin-top: 20px;
		letter-spacing: 2px;
		background: #F04D2F;
		color: #fff;
	}
</style>